﻿using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
using ZeroSum.Plugin.Authentication.JwtBearer.Authorization;

namespace ZeroSum.Plugin.Authentication.JwtBearer.Authentication;

public class ApiAuthorizeAttribute : AuthorizeAttribute
{
    public ApiAuthorizeAttribute()
    {
        Policy = ZeroSumPermissionRequirement.Policy;
        AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme;
    }
}